package com.ctsi.auth.integration.authenticator;

import com.ctsi.auth.integration.IntegrationAuthentication;
import com.ctsi.organise.common.model.UserLogin;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

/**
 * @author zhangjw
 * @className AbstractPreparableIntegrationAuthenticator
 * @description TODO
 * @date 2019/2/21 14:30
 **/
public abstract class AbstractPreparableIntegrationAuthenticator implements IntegrationAuthenticator{

    @Override
    public abstract UserLogin authenticate(IntegrationAuthentication integrationAuthentication);

    @Override
    public abstract void prepare(IntegrationAuthentication integrationAuthentication) throws OAuth2Exception;

    @Override
    public abstract boolean support(IntegrationAuthentication integrationAuthentication);

    @Override
    public void complete(IntegrationAuthentication integrationAuthentication) {

    }
}
